package com.aistar.service.impl;

import com.aistar.mapper.TripperMapper;
import com.aistar.pojo.Tripper;
import com.aistar.service.TripperService;
import com.aistar.util.ServerResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TripperSerciceImpl implements TripperService {
    @Autowired
    TripperMapper mapper;
    @Override
    public ServerResponse addTripper(Tripper tripper) {
        int row=mapper.insert(tripper);
        if (row > 0)
            return ServerResponse.addSuccess();
        else
            return ServerResponse.addFailed();
    }
}
